<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div{
            width: 200px;
            height: 200px;
            border: 1px solid red;
            /* display: inline-block; */
            float: left;
        }
        #div1{
            background-color: aquamarine;
            /* float: left;    */
        }
        #div2{
            background-color: blanchedalmond;
            /* float: left;   */
        }
        #div3{
            background-color: blueviolet;
            /* float: left;   */
        }
    </style>
</head>
<body>
    <div id="div1">div1</div>
    <div id="div2">div2</div>
    <div id="div3">div3</div>
    <p>p</p>
</body>
</html>